﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace weiqijiance.数据库操作
{
    public class DBweiqi:dbbass
    {
        public DBweiqi()
        {
            string path = "";
            path = System.Windows.Forms.Application.StartupPath + path + "\\数据库设置.ini";
            string path1 = string.Format(@"{0}", path);
            iniclass objini = new iniclass();
            objini.Ini(path1);
            sDataBaseIp = objini.ReadValue("尾气设置", "数据库IP");
            sDataBaseName = objini.ReadValue("尾气设置", "数据库名称");
            sDataBaseUserName = objini.ReadValue("尾气设置", "用户");
            sDataBasePwd = objini.ReadValue("尾气设置", "密码");
        }
        //public override void getSQLSZ()
        //{
        //    string path = "";
        //    path = System.Windows.Forms.Application.StartupPath + path + "\\数据库设置.ini";
        //    string path1 = string.Format(@"{0}", path);
        //    iniclass objini = new iniclass();
        //    objini.Ini(path1);
        //    sDataBaseIp = objini.ReadValue("尾气设置", "数据库IP");
        //    sDataBaseName = objini.ReadValue("尾气设置", "数据库名称");
        //    sDataBaseUserName = objini.ReadValue("尾气设置", "用户");
        //    sDataBasePwd = objini.ReadValue("尾气设置", "密码");


        //}
    }
}
